def is_palindrome(s):
    for i in range(len(s)//2):
        if s[i] != s[len(s) - i - 1]:
            return False
    return True

print(is_palindrome("radar")) # 应输出True
print(is_palindrome("hello")) # 应输出False
